﻿<Window x:Class="_3.CategoryProducts.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="331">
    <Canvas x:Name="MainCanvas">
        <Label Canvas.Top="2">Product ID: </Label>
        <TextBox x:Name="TextBoxProductId" Canvas.Left="70" Width="125" Canvas.Top="2"></TextBox>
        <Button x:Name="ButtonSearch" Width="100" Height="23" Canvas.Left="200" Canvas.Top="2" Click="ButtonSearch_Click">Get Product</Button>
        <Canvas Background="LightGray" Width="310" Height="280" Canvas.Top="30">
            <TextBlock Canvas.Left="10" Canvas.Top="6">Model number:</TextBlock>
            <TextBox Canvas.Left="100" Canvas.Top="1" Width="200"
                     Text="{Binding Path=ModelNumer}"></TextBox>
            <TextBlock Canvas.Left="10" Canvas.Top="37">Model Name:</TextBlock>
            <TextBox Canvas.Left="100" Canvas.Top="31" Width="200"
                     Text="{Binding Path=ModelName}"></TextBox>
            <TextBlock Canvas.Left="10" Canvas.Top="67">Unit Cost:</TextBlock>
            <TextBox Canvas.Left="100" Canvas.Top="61" Width="200"
                     Text="{Binding Path=UnitCost}"></TextBox>
            <TextBlock Canvas.Left="10" Canvas.Top="97">Category</TextBlock>
            <TextBox Canvas.Left="100" Canvas.Top="91" Width="200"
                     Text="{Binding Path=Category.CategoyName}"></TextBox>
            <TextBlock Canvas.Left="10" Canvas.Top="121">Description:</TextBlock>
            <TextBox Canvas.Left="10" Canvas.Top="141" Width="290" 
                     AcceptsReturn="True" Height="130" Text="{Binding Description}"></TextBox>
        </Canvas>
    </Canvas>
</Window>
